-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add commandline option #151
Conversation
方便debug |
dde-clipboard/main.cpp
Outdated
@@ -27,6 +27,18 @@ int main(int argc, char *argv[]) | |||
app->setApplicationName("dde-clipboard"); | |||
app->setApplicationDisplayName("DDE Clipboard"); | |||
app->setApplicationVersion("1.0"); | |||
|
|||
QCommandLineOption alwaysshowOption("alwaysShow" , "show and will never hide"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一般的 cli 参数的格式是用连字符分隔词的吧,"always-show",实际用法 --always-show
。
另外,变量名也不是驼峰, alwaysShowOption
。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好了
6ac29f2
to
2836f18
Compare
for debug Log:
2836f18
to
fce5dba
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, Decodetalkers The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/merge |
for debug
Log: